home *** CD-ROM | disk | FTP | other *** search
- Path: news.eunet.fi!fipnet!kone!jsaarinen
- Newsgroups: comp.sys.amiga.programmer
- X-NewsReader: IntuiNews 1.2b (31.7.94)
- References: <38232527@kone.fipnet.fi> <4gkrht$d5l@maureen.teleport.com>
- From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
- Date: Mon, 26 Feb 96 16:15:29 UT
- Comments: Illegal date header - new date added by quicknews
- X-Original-Date: Mon, 26 Feb 96 13:08:09
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: binary
- Distribution: world
- Subject: Re: TMapping again!
- Message-ID: <38232665@kone.fipnet.fi>
-
-
- > a mul?.w is 27, a muls.l is 43
- > a divs.l is 90
-
- Max. 90.. How about if the low word is zero? I think the
- amount of bits on influences the speed of a divide.
-
- > -- what you do with muls.l is:
- >
- > setup
- > move.l (a2,d0.w*4),d1 ;done upto 4 time per poly
- >
- > opp:
- > ext.l d2
- > muls.l d1,d2 ; 2+43 * upto 15time = 675
- >
- >
- > -- with div:
- >
- > setup
- > ext.l d0 ; done upto 4 time per poly
- >
- > opp:
- > swap d2
- > sub.w d2,d2
- > divs.l d2,d0 ;4+2+90 * 15 = 1440
-
- Yep, but the point is that my values are readily shifted
- to high word, and if I want to use muls.l 1/x table with 16.16,
- I have to clear the upper word, too.
-
- > You dont have to fall back to 15bit precision to gain the speed
- > from mul VS div... using 15bit give you an extra 6.03 mcycle, or
- > you could use mulu.w and adjust the sign?
-
- Adjusting the sign .. naah..
-
- > Myself I will stick with 16:16 and muls.l on 68030 and under.
- > a divs.l is ~2time slower then a muls.l and ~3.5 slower then a muls.w
- > On a 68000 I would go with 15bit and muls + an add.l: 76 cycle... ouch
- > but still less then a divs.l on a 030 ;) (To bad the 68000 mhz is so
- > limited:)
-
- A divide table would be the best in my case.. 512kB for a table.
- Oh yes, muls.w 15bit table and the add.l dx,dx.. quite clever..
-
- But I still dont get your point; the divides dont matter
- very much in the frame rate..
-
- -- _
- a Stellar programmer _ //
- "Amiga - back for the future" \X/
-